package com.xii.mapper;

import com.xii.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderMapper {
    Order getOrderByMemberDateSetmeal(@Param("memberId") Integer id, @Param("orderDate")Date orderDate, @Param("setmealId")String setmealId);

    void addOrder(Order order);

    Map findDetailsById(Integer id);

    //运营统计
    Integer findOrderCountByDate(String today);
    Integer findOrderCountAfterDate(String thisWeekMonday);
    Integer findVisitsCountByDate(String today);
    Integer findVisitsCountAfterDate(String thisWeekMonday);
    List<Map> findHotSetmeal();


}
